<?php
class Gmap_model extends Model {
    function Gmap_model()
    {
        parent::Model();
    }
	
	function Insert($table, $data) {
		$this->db->insert($table, $data);
		return $this->db->insert_id();
	}
	
	function Load($table) {
		return $this->db->get($table)->result();
	}

	function Update($id, $data) {
		return $this->db->update('shelter', $data, $id);
	}
}
?>